package mysql

import "gorm.io/gorm"

type Product struct {
	gorm.Model
	Number   int     `gorm:"type:int(10);not null;comment:'商品编码'"`
	Image    string  `gorm:"type:varchar(255);not null;comment:'商品图片'"`
	Name     string  `gorm:"type:varchar(20);not null;comment:'商品名称'"`
	Nav      string  `gorm:"type:varchar(20);not null;comment:'商品导航'"`
	Label    string  `gorm:"type:varchar(20);not null;comment:'商品标签'"`
	Price    float64 `gorm:"type:double(10,2);not null;comment:'原价'"`
	ActPrice float64 `gorm:"type:double(10,2);not null;comment:'活动价'"`
	Stock    int     `gorm:"type:int(10);not null;comment:'库存'"`
	Sales    int     `gorm:"type:int(20);not null;comment:'销量'"`
	UserId   int     `gorm:"type:int(20);not null;comment:'用户Id'"`
	Type     string  `gorm:"type:varchar(10);not null;comment:'状态'"`
}
